﻿using System;
using System.Linq;
using System.Collections.Generic;
using EnsureWeb.UI.Core;

namespace EnsureWeb.UI.ViewModels
{
    [StaticResource("Resume_ItemViewModel")]
    public partial class Resume_ItemViewModel : EditableViewModel
    {
        public override void Init()
        {
            
        }

        #region AggregationDatas
        private AggregationData genders;
        public AggregationData Genders
        {
            get
            {
                if (genders == null)
                    genders = new AggregationData()
                    {
                         new AggregationItem(1, "Male"), 
                         new AggregationItem(2, "Female")
                    };

                return genders;
            }
        }

        private AggregationData currentSalarys;
        public AggregationData CurrentSalarys
        {
            get
            {
                if (currentSalarys == null)
                    currentSalarys = new AggregationData()
                    {
                         new AggregationItem(1, "3000-5000"),
                         new AggregationItem(2, "5000-8000"),
                         new AggregationItem(3, "8000-12000"),
                         new AggregationItem(4, "12000-15000"),
                         new AggregationItem(5, ">15000")
                    };

                return currentSalarys;
            }
        }

        public AggregationData CurrentSalarysAll
        {
            get
            {
                var currentSalarys = new AggregationData();
                currentSalarys.Add(new AggregationItem(0, "Full Salary Range"));
                currentSalarys.AddRange(this.CurrentSituations);

                return currentSalarys;
            }
        }

        private AggregationData currentSituations;
        public AggregationData CurrentSituations
        {
            get
            {
                if (currentSituations == null)
                    currentSituations = new AggregationData()
                    {
                         new AggregationItem(1, "Looking for work"),
                         new AggregationItem(2, "If you have a better chance"),
                         new AggregationItem(3, "Is not currently considering"),
                    };

                return currentSituations;
            }
        }

        public AggregationData CurrentSituationsAll
        {
            get
            {
                var currentSituations = new AggregationData();
                currentSituations.Add(new AggregationItem(0, "All work status"));
                currentSituations.AddRange(this.CurrentSituations);

                return currentSituations;
            }
        }

        private AggregationData degrees;
        public AggregationData Degrees
        {
            get
            {
                if (degrees == null)
                    degrees = new AggregationData()
                    {
                         new AggregationItem(1, "High School"),
                         new AggregationItem(2, "Undergraduate"),
                         new AggregationItem(3, "Dual Degree"),
                         new AggregationItem(4, "Master"),
                         new AggregationItem(5, "Dr.")
                    };

                return degrees;
            }
        }

         public AggregationData DegreesAll
         {
            get
            {
                var degrees = new AggregationData();
                degrees.Add(new AggregationItem(0, "All degree"));
                degrees.AddRange(this.Degrees);

                return degrees;
            }
         }
        #endregion
    }

}